export const TYPE_SET_ENTRIES = 'SET_ENTRIES';
export const TYPE_NEXT = 'NEXT';
export const TYPE_RESTART = 'RESTART';
export const TYPE_VOTE = 'VOTE';

export function setEntries(entries) {
  return {type: TYPE_SET_ENTRIES, entries: entries};
}

export function next() {
  return {type: TYPE_NEXT};
}

export function vote(entry) {
  return {type: TYPE_VOTE, entry: entry};
}